package org.testile.datasetgenerifier.impl;

import com.google.common.base.Function;
import java.util.Map;
import org.testile.datasetgenerifier.TransformationFactory;

/**
 *
 * @author ytoh
 */
public class ConstantTransformationFactory implements TransformationFactory {

	public Function<String, String> newInstance(final Object o, Map m) {
		return new Function<String,String>() {

			public String apply(String from) {
				return String.valueOf(o);
			}
		};
	}
}
